package com.example.test.bottom_tab;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;


import com.example.test.Admin_function.add_tiku;
import com.example.test.R;
import com.example.test.exam.all_tiku;

public class tiku_Fragment extends Fragment {
    private Button bt1,bt2;

    public tiku_Fragment(Button bt1,Button bt2) {
        this.bt1 = bt1;
        this.bt2 = bt2;
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fg_content_tiku,container,false);
        Button add = (Button) view.findViewById(R.id.fg_tiku_add);
        Button chaxun = (Button) view.findViewById(R.id.fg_tiku_chaxun);
        add.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent tiku_add = new Intent(getActivity(), add_tiku.class);
                startActivity(tiku_add);
            }
        });
        chaxun.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent tiku_all = new Intent(getActivity(), all_tiku.class);
                startActivity(tiku_all);
            }
        });
        return view;
    }
}
